#ifndef THREADDETECT_H
#define THREADDETECT_H

#include <QObject>
#include <QThread>

#include "utiladb.h"

class ThreadDetect : public QThread
{
    Q_OBJECT
public:
    ThreadDetect();
signals:
    void signal_adbDetect(int devCount, bool needRefresh);
protected:
    void run();
private:
    UtilADB *m_adb;
    E_ADB_RET m_retOld = E_ADB_OTHERS;
    E_ADB_RET m_retCur = E_ADB_NO_DEVICE;
    int m_adbCnt = 0;
};

#endif // THREADDETECT_H
